package org.common.constant;

/**
 * 通用配置常量
 *
 * @author yexi
 */
public class GlobalConfig {

    public static final String RESOURCE_NAME = "db.properties";
    public static final String DRIVER = "driverClassName";
    public static final String URL = "url";
    public static final String JDBC_URL = "jdbcUrl";
    public static final String USERNAME = "username";
    public static final String PASSWORD = "password";

    public static String getDriver(String activeDb) {
        return DRIVER + "-" + activeDb;
    }

    public static String getUrl(String activeDb) {
        return URL + "-" + activeDb;
    }

    public static String getUsername(String activeDb) {
        return USERNAME + "-" + activeDb;
    }

    public static String getPassword(String activeDb) {
        return PASSWORD + "-" + activeDb;
    }
}
